//
//  ViewController.m
//  06_CycleImages
//
//  Created by 徐昊 on 16/7/21.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "ViewController.h"
#import "HXCycleImages.h"
#define FRAME [UIScreen mainScreen].bounds
#define WIDTH FRAME.size.width
#define HEIGHT FRAME.size.height
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSArray *array = [NSArray arrayWithObjects:@"0.jpg", @"1.jpg", @"2.jpg", @"3.jpg", @"4.jpg", nil];
    HXCycleImages *cycle = [[HXCycleImages alloc] initWithFrame:CGRectMake(0, 0, WIDTH, 200)];
    [cycle setImagesWithArray:array];
    [self.view addSubview:cycle];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
